import { DefaultBusinessRepository } from "@atinc/eros/repository";
import { UserEntity } from "../entity/user.entity";
import { injectable } from "@atinc/chaos/container";

@injectable()
export class UserRepository extends DefaultBusinessRepository<UserEntity> {

    constructor() {
        super(UserEntity);
    }

    public async findAll() {

        const driver = this.driver;
        const users = await driver.find("user", {});
        return Promise.reject(users);

    }
}
